package com.miyu.taskjob.controller;

import com.alibaba.fastjson2.JSONObject;
import com.miyu.taskjob.service.TaskJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 任务作业
 * @author miyu
 * @date 2022/11/03
 */
@RestController
@RequestMapping("taskJob")
public class TaskJob {

    @Autowired
    private TaskJobService taskJobService;

    @RequestMapping("/addjob")
    public JSONObject addjob(@RequestBody JSONObject job){
       return taskJobService.addjob(job);
    }
}
